package com.shop.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@TableName(value ="cart")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Cart implements Serializable {
    /**
     *
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 商品名
     */
    @TableField(value = "wares_name")
    private String waresName;

    /**
     * 商品款式
     */
    @TableField(value = "style_name")
    private String styleName;

    /**
     * 套餐单价
     */
    @TableField(value = "cost_price")
    private double costPrice;

    /**
     * 套餐款式
     */
    @TableField(value = "cost_message")
    private String costMessage;

    /**
     * 商品图案
     */
    @TableField(value = "style_images")
    private String styleImages;

    /**
     * 数量
     */
    @TableField(value = "wares_number")
    private Integer waresNumber;
    /**
     * 商品ID
     */
    @TableField(value = "wares_id")
    private Long waresId;

    /**
     * 款式ID
     */
    @TableField(value = "style_id")
    private Long styleId;

    /**
     * 套餐ID
     */
    @TableField(value = "cost_id")
    private Long costId;

    /**
     * 是否删除
     */
    @TableField(value = "is_delete")
    private Integer isDelete;


}
